package com.xxx.log;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Bar {
    static final Logger logger = LogManager.getLogger(Bar.class.getName());

    public static void main(String[] args) {
        //off -> fatal -> error -> warn -> info -> debug -> all
        logger.error("error日志");
        logger.warn("warn日志");
        logger.info("inf日志");
        logger.debug("debug日志");
    }
}